<!DOCTYPE html>
<html>

<head>
  <!-- Meta, title, CSS, favicons, etc. -->
  <meta charset="utf-8">
  <title>AbsoluteAdmin - A Responsive Boostrap 3 Admin Dashboard</title>
  <meta name="keywords" content="Bootstrap 3 Admin Dashboard Template Theme" />
  <meta name="description" content="AdminDesigns - Bootstrap 3 Admin Dashboard Theme">
  <meta name="author" content="AdminDesigns">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  {include file="/public/import_file" /}

</head>

<body class="profile-page">

 

  <!-- Start: Main -->
  <div id="main">

    <!-- Start: Header -->
      {include file="/public/header" /}
    <!-- End: Header -->

    <!-- Start: Sidebar -->
    <aside id="sidebar_left" class="nano nano-light affix">

      <!-- Start: Sidebar Left Content -->
      <div class="sidebar-left-content nano-content">

        <!-- Start: Sidebar Menu -->
       {include file="/public/menu" /}
        <!-- End: Sidebar Menu -->

	      <!-- Start: Sidebar Collapse Button -->
	      <div class="sidebar-toggle-mini">
	        <a href="#">
	          <span class="fa fa-sign-out"></span>
	        </a>
	      </div>
	      <!-- End: Sidebar Collapse Button -->

      </div>
      <!-- End: Sidebar Left Content -->

    </aside>

    <!-- Start: Content-Wrapper -->
    <section id="content_wrapper">

    

      <!-- Start: Topbar -->
      <header id="topbar" class="alt">
        <div class="topbar-left">
          <ol class="breadcrumb">
            <li class="crumb-active">
              <a href="#">餐厅信息</a>
            </li>
            <li class="crumb-icon">
              <a href="#">
                <span class="glyphicon glyphicon-home"></span>
              </a>
            </li>
            <li class="crumb-link">
              <a href="{:url('edit_shop')}">点此修改餐厅信息</a>
            </li>
            
          </ol>
        </div>
        
      </header>
      <!-- End: Topbar -->

      <!-- Begin: Content -->
      <section id="content" class="animated fadeIn">

        <!-- Begin .page-heading -->
        <div class="page-heading">
            <div class="media clearfix">
              <div class="media-left pr30">
                <a href="#">
                  <img class="media-object mw150" src="__PUBLIC__/static/admin/Uploads/shoppic/{$shop.pic}" width="230" alt="...">
                </a> 
              </div>                      
              <div class="media-body va-m">
                <h2 class="media-heading" style="line-height: 30px">{$shop.shopname}
                  - 

                  {if condition="$shop.state eq 2"}
                  <a href="{:url('changediningstate',array('shop_id'=>$shop.shop_id,'state'=>1))}" ><small>暂停营业</small></a>
                  {else/}
                  <a href="{:url('changediningstate',array('shop_id'=>$shop.shop_id,'state'=>2))}" style="margin-top: -1em"><small>正常营业</small></a>       
                  {/if}
                </h2>

                <!-- <p class="lead">店铺介绍：{$shop.intro}</p> -->
                <p class=""><small><i class="fa fa-star">&nbsp;</i>营业时间：{$shop.shoptime}</small>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; <i class="fa fa-phone">&nbsp;</i><small>电话：{$shop.phonenum}</small></p>

                <p class="lead"><i class="fa fa-map-marker">&nbsp;</i><small>地址：{$shop.address}</small></p>

                
              </div>
            </div>
        </div>

        <div class="row">
            <div class="col-md-4">
              <div class="panel">
                <div class="panel-heading">
                  <span class="panel-icon">
                    <i class="fa fa-star"></i>
                  </span>
                  <span class="panel-title">餐厅评分</span>
                </div>
                <div class="panel-body pn">
                  <table class="table mbn tc-icon-1 tc-med-2 tc-bold-last">
                    <thead>
                      <tr class="hidden">
                        <th class="mw30">#</th>
                        <th>First Name</th>
                        <th>Revenue</th>
                      </tr>
                    </thead>
                    <tbody>
                      <tr>
                        <td>
                       <span class="fa fa-star text-primary"></span>
                        </td>
                        <td>口味平均分</td>
                        <td>
                          <i class="fa fa-caret-up text-info pr10"></i>{$shopscore.tastescore}&nbsp;&nbsp;&nbsp;</td>
                      </tr>
                      <tr>
                        <td>
                          <span class="fa fa-star text-warning"></span>
                        </td>
                        <td>环境平均分</td>
                        <td>
                          <i class="fa fa-caret-down text-danger pr10"></i>{$shopscore.envscore}&nbsp;&nbsp;&nbsp;</td>

                      </tr>
                      <tr>
                        <td>
                         <span class="fa fa-star text-system"></span>
                        </td>
                        <td>评分人数</td>
                        <td>
                          <i class="fa fa-caret-up text-info pr10"></i>{$shopscore.servscore}&nbsp;&nbsp;&nbsp;</td>
                      </tr>
                    </tbody>
                  </table>
                </div>
              </div>
             <!--  <div class="panel">
                <div class="panel-heading">
                  <span class="panel-icon">
                    <i class="fa fa-trophy"></i>
                  </span>
                  <span class="panel-title"> My Skills</span>
                </div>
                <div class="panel-body pb5">
                  <span class="label label-warning mr5 mb10 ib lh15">Default</span>
                  <span class="label label-primary mr5 mb10 ib lh15">Primary</span>
                  <span class="label label-info mr5 mb10 ib lh15">Success</span>
                  <span class="label label-success mr5 mb10 ib lh15">Info</span>
                  <span class="label label-alert mr5 mb10 ib lh15">Warning</span>
                  <span class="label label-system mr5 mb10 ib lh15">Danger</span>
                  <span class="label label-info mr5 mb10 ib lh15">Success</span>
                  <span class="label label-success mr5 mb10 ib lh15">Ui Design</span>
                  <span class="label label-primary mr5 mb10 ib lh15">Primary</span>

                </div>
              </div> -->
              <div class="panel">
                <div class="panel-heading">
                  <span class="panel-icon">
                    <i class="fa fa-pencil"></i>
                  </span>
                  <span class="panel-title">关于我</span>
                </div>
                <div class="panel-body pb5">

                 

                  <h4>餐厅介绍</h4>
                  <p class="text-muted">{$shop.intro}
                  </p>

                  <hr class="short br-lighter">

                 

                  <h4>服务环境</h4>
                  {if condition="$shop.service eq 1"}
                  <p class="text-muted">店内有wify</p>
                  {else/}
                  <p class="text-muted">店内没有wify</p>
                  {/if}

                  <hr class="short br-lighter">

                  

                  <h4>备注</h4>
                  <p class="text-muted pb10">{$shop.comment}
                  </p>

                </div>
              </div>
            </div>
            <div class="col-md-8">

              <div class="tab-block">
                <ul class="nav nav-tabs">
                  <li class="active">
                    <a href="#tab1" data-toggle="tab">本店公告</a>
                  </li>
                  <li>
                    <a href="#tab2" data-toggle="tab">发布公告</a>
                  </li>
                 <!--  <li>
                    <a href="#tab1" data-toggle="tab">Media</a>
                  </li> -->
                </ul>
                <div class="tab-content p30" style="height: 590px;">
                  <div id="tab1" class="tab-pane active">

                  {volist name="noticelist" id="vo2"}  
                    <h4>{$vo2.ndate}</h4>
                  <p class="text-muted">{$vo2.notice}
                  </p>

                  <hr class="short br-lighter">
                  {/volist}
                 

                   
                  </div>
                  <div id="tab2" class="tab-pane">
                     <form method="post" action="{:url('addnotice')}" enctype="multipart/form-data"> 
              <div class="tab-content pn br-n admin-form">
            
           
              <textarea style="height: 160px;" class="gui-textarea br-light bg-light"  name="notice" placeholder="点此输入你要发布的公告信息..."></textarea>
              <input type="submit" class="button btn-system btn-file btn-block" style="margin-top: 10px" value="点击发布">
                        
                         


              </div>

              </form>  
                  </div>
                  <div id="tab3" class="tab-pane"></div>
                  <div id="tab4" class="tab-pane"></div>
                </div>
              </div>
            </div>
          </div>
          
      </section>
      <!-- End: Content -->

    </section>

    <!-- Start: Right Sidebar -->
    <aside id="sidebar_right" class="nano affix">

      <!-- Start: Sidebar Right Content -->
      <div class="sidebar-right-content nano-content">

        <div class="tab-block sidebar-block br-n">
          <ul class="nav nav-tabs tabs-border nav-justified hidden">
            <li class="active">
              <a href="#sidebar-right-tab1" data-toggle="tab">Tab 1</a>
            </li>
            <li>
              <a href="#sidebar-right-tab2" data-toggle="tab">Tab 2</a>
            </li>
            <li>
              <a href="#sidebar-right-tab3" data-toggle="tab">Tab 3</a>
            </li>
          </ul>
          <div class="tab-content br-n">
            <div id="sidebar-right-tab1" class="tab-pane active">

              <h5 class="title-divider text-muted mb20"> Server Statistics
                <span class="pull-right"> 2013
                  <i class="fa fa-caret-down ml5"></i>
                </span>
              </h5>
              <div class="progress mh5">
                <div class="progress-bar progress-bar-primary" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 44%">
                  <span class="fs11">DB Request</span>
                </div>
              </div>
              <div class="progress mh5">
                <div class="progress-bar progress-bar-info" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 84%">
                  <span class="fs11 text-left">Server Load</span>
                </div>
              </div>
              <div class="progress mh5">
                <div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="45" aria-valuemin="0" aria-valuemax="100" style="width: 61%">
                  <span class="fs11 text-left">Server Connections</span>
                </div>
              </div>

              <h5 class="title-divider text-muted mt30 mb10">Traffic Margins</h5>
              <div class="row">
                <div class="col-xs-5">
                  <h3 class="text-primary mn pl5">132</h3>
                </div>
                <div class="col-xs-7 text-right">
                  <h3 class="text-success-dark mn">
                    <i class="fa fa-caret-up"></i> 13.2% </h3>
                </div>
              </div>

              <h5 class="title-divider text-muted mt25 mb10">Database Request</h5>
              <div class="row">
                <div class="col-xs-5">
                  <h3 class="text-primary mn pl5">212</h3>
                </div>
                <div class="col-xs-7 text-right">
                  <h3 class="text-success-dark mn">
                    <i class="fa fa-caret-up"></i> 25.6% </h3>
                </div>
              </div>

              <h5 class="title-divider text-muted mt25 mb10">Server Response</h5>
              <div class="row">
                <div class="col-xs-5">
                  <h3 class="text-primary mn pl5">82.5</h3>
                </div>
                <div class="col-xs-7 text-right">
                  <h3 class="text-danger mn">
                    <i class="fa fa-caret-down"></i> 17.9% </h3>
                </div>
              </div>

              <h5 class="title-divider text-muted mt40 mb20"> Server Statistics
                <span class="pull-right text-primary fw600">USA</span>
              </h5>


            </div>
            <div id="sidebar-right-tab2" class="tab-pane"></div>
            <div id="sidebar-right-tab3" class="tab-pane"></div>
          </div>
          <!-- end: .tab-content -->
        </div>
      </div>
    </aside>
    <!-- End: Right Sidebar -->

  </div>
  <!-- End: Main -->

  <!-- BEGIN: PAGE SCRIPTS -->

  <!-- jQuery -->
  <script src="__PUBLIC__/static/admin/vendor/jquery/jquery-1.11.1.min.js"></script>
  <script src="__PUBLIC__/static/admin/vendor/jquery/jquery_ui/jquery-ui.min.js"></script>

  <!-- Theme Javascript -->
  <script src="__PUBLIC__/static/admin/assets/js/utility/utility.js"></script>
  <script src="__PUBLIC__/static/admin/assets/js/demo/demo.js"></script>
  <script src="__PUBLIC__/static/admin/assets/js/main.js"></script>
  <script type="text/javascript">
  jQuery(document).ready(function() {

    "use strict";

    // Init Theme Core    
    Core.init();

    // Init Demo JS  
    Demo.init();


  });
  </script>
  <!-- END: PAGE SCRIPTS -->

</body>

</html>
